package me.zingon.tools;

import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.springframework.stereotype.Component;

@Component
public class StringTool {
	public List<String> getBaseInfo(String html) {
		List<String> list=new ArrayList<String>();
		String reg = "<b>(.*?)</b>";
		Pattern p = Pattern.compile(reg);
		Matcher m = p.matcher(html);
		while(m.find()){
			list.add(m.group(1));
		}
		return list;
	}
}
